<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/static/admin/js/libs/modernizr.min.js"></script>
</head>
<body>
    {include file="Public/top" /}
    <div class="container clearfix">
        {include file="Public/left" /}
        <!--/sidebar-->
        <div class="main-wrap">

            <div class="crumb-wrap">
                <div class="crumb-list"><i class="icon-font"></i><a href="{:url('admin/index/index')}">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="{:url('admin/article/lst')}">问卷模板</a><span class="crumb-step">&gt;</span><span>新增问卷模板</span></div>
            </div>
            <div class="result-wrap">
                <div class="result-content">
                
                    <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
                        <table id="myTable" class="insert-tab" width="100%">
                            <tbody>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>问卷名称：</th>
                                    <td>
                                        <input class="common-text required" id="catename" name="catename" size="50" value="" type="text">
                                    </td>
                                </tr>
                                <tr>
                                    <th>问卷描述：</th>
                                    <td><textarea name="desc" class="common-textarea" id="desc" cols="30" style="width: 50%;" rows="2"></textarea></td>
                                </tr>
                                <tr>
                                    <th>问题 1</th>
                                    <td>
                                        <p>问题标题</p><input class="common-text" id="title1" name="title1" size="50" value="" type="text">
                                        <p>问题类型： <input name="type1" value="0" type="radio" checked="" /> 单选题 <input name="type1" value="1" type="radio" /> 多选题 </p>
                                        <p>选项1：<input class="common-text" name="answer11" size="50" value="" type="text"></p>
                                        <p>选项2：<input class="common-text" name="answer21" size="50" value="" type="text"></p>
                                        <p>选项3：<input class="common-text" name="answer31" size="50" value="" type="text"></p>
                                        <p>选项4：<input class="common-text" name="answer41" size="50" value="" type="text"></p>
                                        <p>选项5：<input class="common-text" name="answer51" size="50" value="" type="text"></p>
                                        <p>选项6：<input class="common-text" name="answer61" size="50" value="" type="text"></p>
                             </td>
                        </tr></table>
                         <table   class="insert-tab" width="100%">
                        <tr><th width="10%">
                        
                        
                         
                        <a href="#num"> <p  onclick="insRow()">＋增加一个问题</p> </a>
                        </th><td> </td></tr>                            
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button"><span id="num" style="display: none">1</span>  
                                </td>
                            </tr>
                        </tbody></table><p style="height: 250px"> </p>
                    </form>
                </div>
            </div>

        </div>


                            <script type="text/javascript">
function insRow()
  {
    
  n = parseFloat(num.innerHTML) + 1;
  num.innerHTML= n;
  var x=document.getElementById('myTable').insertRow(-1)
  var y=x.insertCell(0)
  var z=x.insertCell(1)
  y.innerHTML='<p style="text-align: right;"> 问题 ' + n + '&nbsp; </p>'
      z.innerHTML='<p>问题标题</p><input class="common-text" name="title' + n +'" size="50" value="" type="text">                                        <p>问题类型： <input name="type' + n +'" value="0" type="radio" checked="" /> 单选题 <input name="type' + n +'" value="1" type="radio" /> 多选题 </p>                                        <p>选项1：<input class="common-text" name="answer1' + n +'" size="50" value="" type="text"></p>                                        <p>选项2：<input class="common-text" name="answer2' + n +'" size="50" value="" type="text"></p>                                        <p>选项3：<input class="common-text" name="answer3' + n +'" size="50" value="" type="text"></p>                                        <p>选项4：<input class="common-text" name="answer4' + n +'" size="50" value="" type="text"></p>                                        <p>选项5：<input class="common-text" name="answer5' + n +'" size="50" value="" type="text"></p>                                        <p>选项6：<input class="common-text" name="answer6' + n +'" size="50" value="" type="text"></p>'
  }
</script>
 
         
    
                     <!--/main-->
                 </div>
             </body>
             </html>